home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 1.iso / t_os / wstype / source / dosint.s < prev    next >
Text File  |  1991-10-18  |  510b  |  43 lines

  1. /***   [dosint.s]
  2. *
  3. *    DOS int 23/24    (C)ささがわ
  4. *
  5. *    For GNU Assembler (GAS)
  6. *
  7. ***/
  8.  
  9.     .text
  10.  
  11.     .align    2
  12. _Errhdl:
  13.     .globl    _Errhdl
  14.     pushl    %ds
  15.     movb    $0x24, %cl
  16.     movl    $handler_24, %edx
  17.     pushl    %cs
  18.     popl    %ds
  19.     movw    $0x2506, %ax
  20.     int    $0x21
  21.     popl    %ds
  22.     ret
  23.  
  24. handler_24: 
  25.     movb    $0x03, %al
  26.     iret
  27.  
  28.     .align    2
  29. _CtrlC_ignore:
  30.     .globl    _CtrlC_ignore
  31.     pushl    %ds
  32.     movb    $0x23, %cl
  33.     movl    $handler_23, %edx
  34.     pushl    %cs
  35.     popl    %ds
  36.     movw    $0x2506, %ax
  37.     int    $0x21
  38.     popl    %ds
  39.     ret
  40.  
  41. handler_23: 
  42.     iret
  43.